function TMacros:UnitIsAliveFriend(Unit)
    return UnitExists(Unit) and not UnitIsDeadOrGhost(Unit) and UnitIsFriend("player", Unit)
end

function TMacros:UnitIsAliveEnemy(Unit)
    return UnitExists(Unit) and not UnitIsDeadOrGhost(Unit) and (UnitIsEnemy("player", Unit) or not UnitIsFriend("player",Unit))
end